package cn.itsource.hrm.mapper;

import cn.itsource.hrm.domain.Tenant;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gwkge
 * @since 2021-03-31
 */
public interface TenantMapper extends BaseMapper<Tenant> {


    /**
     * 根据公司名查询公司信息
     * @param companyName
     * @return
     */
    Tenant selectOneByName(String companyName);

    void saveTenantAndMeal(@Param("mealId") Long mealId, @Param("tenantId") Long tenantId, @Param("expireDate") Date expireDate, @Param("state") Integer state);
}
